SimpleJWTLogin\Modules\SimpleJWTLoginService D

Total Complexity 163
Dependencies 11
Dependents 1
Total lines 1,022
Lines of code 743
Logical lines of code 337
Comment lines 142
Methods 29
Properties 6

Methods 29

Method Rating Maintainability Complexity Lines of code
authenticateUser()
B
36 18 84
createUser()
B
37 18 71
validateRegisterUser()
B
41 15 61
redirectAfterLogin()
A
41 13 57
deleteUser()
A
42 12 54
refreshJwt()
A
39 11 67
getJwtFromRequestHeaderOrCookie()
A
49 10 31
validateDoLogin()
A
47 7 40
validateAuth()
S
47 5 37
validateAuthKey()
S
57 6 16
getUserParameterValueFromPayload()
S
51 5 30
getUserDetails()
S
57 5 18
cleanUpUserExpiredTokens()
S
59 5 13
getallheaders()
S
57 4 17
revokeToken()
S
50 3 32
validateJwtRevoked()
S
59 4 15
getClientIP()
S
61 4 13
doLogin()
S
57 3 17
checkIfTokenIsAlreadyRevoked()
S
64 4 10
getUserIdFromJWT()
S
61 2 12
replaceVariables()
S
61 1 12
withCookie()
S
77 1 4
withSession()
S
77 1 4
randomString()
S
75 1 4
withRequest()
S
77 1 4
validateJWTAndGetUserValueFromPayload()
S
66 1 9
getUserRevokedTokensFromDatabase()
S
79 1 3
getRouteNamespace()
S
81 1 3
withSettings()
S
73 1 5